Communications method and apparatus

ABSTRACT

A method includes: obtaining, by a first communications device, a first carrier, where the first carrier is used to transmit a first message and a second message; obtaining, by the first communications device, a first transmission resource and a second transmission resource of the first carrier, where the first transmission resource is used to send the first message, the second transmission resource is used to send the second message, and the first transmission resource and the second transmission resource are different transmission resources; sending, by the first communications device, the first message on the first transmission resource by using a first wireless access technology; and sending, by the first communications device, the second message on the second transmission resource by using a second wireless access technology, where the first wireless access technology and the second wireless access technology are different inter-device direct communications technologies.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of International Application No.PCT/CN2019/090032, filed on Jun. 4, 2019, which claims priority toChinese Patent Application No. 201810682275.6, filed on Jun. 27, 2018.The disclosures of the aforementioned applications are herebyincorporated by reference in their entireties.

TECHNICAL FIELD

Embodiments of this application relate to the field of communicationstechnologies, and in particular, to a communications method andapparatus.

BACKGROUND

With development of communications technologies, intelligenttransportation technologies represented by the internet of vehicles havedeveloped rapidly. A vehicle-to-everything (V2X) communicationstechnology emerges accordingly. V2X may be vehicle-to-vehicle (V2V),vehicle-to-pedestrian (V2P), or vehicle-to-infrastructure (V2I).

For the V2X communications technology, in a 3rd generation partnershipproject (3GPP) long term evolution (LTE) system, standardizationresearch on Rel-14 has been completed, and standardization work onRel-15 is ongoing.

Currently, 3GPP has started research on a 5th generation communicationstechnology (5G) system, and enhanced research on the V2X communicationstechnology under a new technical framework of the 5G system is also tobe started. In this case, a V2X communications technology in the LTEsystem and a V2X communications technology in the 5G system need toeffectively coexist, to avoid a problem that vehicles cannot communicatewith each other due to non-coexistence of the V2X communicationstechnology in the LTE system and the V2X communications technology inthe 5G system. However, currently, there is no method for achievingeffective coexistence of the V2X communications technology in the LTEsystem and the V2X communications technology in the 5G system.

SUMMARY

Embodiments of this application provide a communications method andapparatus, to achieve effective coexistence of a V2X communicationstechnology in an LTE system and a V2X communications technology in a 5Gsystem.

To achieve the foregoing objective, the following technical solutionsare used in the embodiments of this application.

According to a first aspect, a communication method is provided. A firstcommunications device obtains a first carrier used to transmit a firstmessage and a second message, and obtains a first transmission resourceof the first carrier and a second transmission resource different fromthe first transmission resource. In this way, the first communicationsdevice can send the first message on the first transmission resource byusing a first wireless access technology, and send the second message onthe second transmission resource by using a second wireless accesstechnology. Herein, the first wireless access technology and the secondwireless access technology are different inter-device directcommunications technologies.

Because the first wireless access technology and a second access networktechnology are different inter-device direct communicationstechnologies, the first communications device can send the first messageon the first transmission resource by using the first wireless accesstechnology, and can further send the second message on the secondtransmission resource by using the second wireless access technology, toachieve coexistence of two different types of services. Correspondingly,if the first wireless access technology is a V2X communicationstechnology in a 5G system, and the second wireless access technology isa V2X communications technology in an LTE system, effective coexistenceof the V2X communications technology in the LTE system and the V2Xcommunications technology in the 5G system can be achieved by using thecommunication method provided in this application.

In an embodiment, the first communications device further determines afirst transmit power. In addition, the first communications devicefurther determines a second transmit power. A sum of the first transmitpower and the second transmit power is less than or equal to aconfigured power, and the configured power is preconfigured or isindicated by first signaling sent by a network device. Correspondingly,a method for sending the first message by the first communicationsdevice on the first transmission resource by using the first wirelessaccess technology is: The first communications device sends the firstmessage on the first transmission resource at the first transmit powerand by using the first wireless access technology. A method for sendingthe second message by the first communications device on the secondtransmission resource by using the second wireless access technology is:The first communications device sends the second message on the secondtransmission resource at the second transmit power and by using thesecond wireless access technology.

The first transmission resource and the second transmission resource aredifferent transmission resources on the first carrier, and the firstcommunications device sends messages on different transmission resourcesat different transmit powers. In this application, the firstcommunications device may occupy the first transmission resource and thesecond transmission resource in a frequency division multiplexing (FDM)manner or a time division multiplexing (TDM) manner. Regardless of amanner in which the first transmission resource and the secondtransmission resource are occupied, the sum of the first transmit powerand the second transmit power is less than the configured power, to meetan actual communication requirement.

In an embodiment, the first communications device may further send firstindication information used to indicate the first transmit power, sothat a device receiving the first message can obtain accurate channelinformation during receiving measurement. In addition, the firstcommunications device may further send second indication informationused to indicate the second transmit power, so that a device receivingthe second message can obtain accurate channel information duringreceiving measurement.

In an embodiment, when the first communications device occupies thefirst transmission resource and the second transmission resource in theTDM mode, a method for obtaining the first transmission resource and thesecond transmission resource of the first carrier by the firstcommunications device is: First, the first communications device obtainsa first resource set and a second resource set of the first carrier,where a time-domain resource unit of the first resource set isdetermined based on a subcarrier spacing of the first transmissionresource, and a time-domain resource unit of the second resource set isdetermined based on a subcarrier spacing of the second transmissionresource. Then, the first communications device obtains the firsttransmission resource from the first resource set based on firstconfiguration information, and obtains the second transmission resourcefrom the second resource set based on second configuration information,where the first configuration information is used to indicate at leastone time-domain resource unit in the first resource set, the secondconfiguration information is used to indicate at least one time-domainresource unit in the second resource set, the first configurationinformation is preconfigured or is indicated by second signaling sent bythe network device, and the second configuration information ispreconfigured or is indicated by third signaling sent by the networkdevice.

Similarly, the first resource set is preconfigured or is indicated bysignaling sent by the network device, and the second resource set ispreconfigured or is indicated by signaling sent by the network device.

In an embodiment, the first communications device further sends thirdindication information used to indicate the first transmission resource.In an embodiment, the first communications device further sends fourthindication information used to indicate the second transmissionresource.

In an embodiment, when the first communications device occupies thefirst transmission resource and the second transmission resource in theTDM mode, a method for obtaining the first transmission resource of thefirst carrier by the first communications device is: First, the firstcommunications device obtains a third resource set and a fourth resourceset of the first carrier, where the fourth resource set is a subset ofthe third resource set, a time-domain resource unit of the thirdresource set is determined based on a subcarrier spacing of the secondtransmission resource, and a time-domain resource unit of the fourthresource set is determined based on a subcarrier spacing of the firsttransmission resource. Then, the first communications device obtains thefirst transmission resource from the fourth resource set based on thirdconfiguration information, where the third configuration information isused to indicate at least one time-domain resource unit in the fourthresource set, and the third configuration information is preconfiguredor is indicated by fourth signaling sent by the network device.

It can be learned that the first communications device may use thesubcarrier spacing of the second transmission resource as a referencesubcarrier spacing, and obtain the third resource set and the fourthresource set by using the reference subcarrier spacing, to obtain thefirst transmission resource from the fourth resource set. In thismanner, the first communications device may obtain the secondtransmission resource based on fourth configuration information, wherethe fourth configuration information is preconfigured or is indicated byfifth signaling sent by the network device.

In an embodiment, the first device sends fifth indication informationused to indicate the third resource set and sixth indication informationused to indicate the fourth resource set. In an embodiment, in a processof sending the second message, the first device may further send thefifth indication information used to indicate the third resource set.

In an embodiment, a method for obtaining the first carrier by the firstcommunications device is: The first communications device determines thefirst carrier. Alternatively, the first communications device receives,from the network device, carrier indication information used to indicatethe first carrier, and obtains the first carrier according to thecarrier indication information.

It can be learned that the first carrier in this application may beindicated by the network device by using the carrier indicationinformation, or may be preconfigured.

In an embodiment, the first transmit power is determined by the firstcommunications device based on a priority of the first message, and thesecond transmit power is determined by the first communications devicebased on a priority of the second message. Alternatively, the firsttransmit power is preconfigured or is indicated by signaling sent by thenetwork device, and the second transmit power is preconfigured or isindicated by signaling sent by the network device.

It can be learned that a transmit power may be determined by the firstcommunications device based on a priority of a message, or may bedetermined by the first communications device based on a configurationof the network device, or may be preconfigured.

In an embodiment, the first transmission resource and the secondtransmission resource have a same radio frame number in time domain.Alternatively, there is a preset deviation value between radio framenumbers of the first transmission resource and the second transmissionresource in time domain, and the preset deviation value is preset or isindicated by signaling sent by the network device.

In this application, timings of the first transmission resource and thesecond transmission resource are aligned in the unit of radio frames. Inthis way, when the two transmission resources are multiplexed in timedomain, a resource waste can be reduced.

In another possible design, the preset deviation value is N times a slotlength of the first transmission resource, where N is a positiveinteger.

In an embodiment, a type of a synchronization reference source used bythe first communications device to send the first message is the same asthat used by the first communications device to send the second message.Alternatively, a synchronization reference source transmission resourceused by the first communications device to send the first message is thesame as a synchronization reference source used by the firstcommunications device to send the second message. In this way, a timingof transmission of the first message remains the same as that oftransmission of the second message, thereby avoiding mutual interferencecaused by different timings in a message transmission process.

In an embodiment, the first transmit power at which the firstcommunications device sends the first message is positively correlatedwith the subcarrier spacing of the first transmission resource.

In an embodiment, the second wireless access technology mayalternatively be a wireless access technology between a terminal and anaccess network device.

According to a second aspect, a communications device is provided. Thecommunications device is a first communications device. Thecommunications device includes an obtaining unit and a sending unit.Functions implemented by units and modules provided in this applicationare as follows: The obtaining unit is configured to: obtain a firstcarrier, where the first carrier is used to transmit a first message anda second message; and obtain a first transmission resource and a secondtransmission resource of the first carrier, where the first transmissionresource is used to send the first message, the second transmissionresource is used to send the second message, and the first transmissionresource and the second transmission resource are different transmissionresources. The sending unit is configured to: send, by using a firstwireless access technology, the first message on the first transmissionresource obtained by the obtaining unit; and send, by using a secondwireless access technology, the second message on the secondtransmission resource obtained by the obtaining unit, where the firstwireless access technology and the second wireless access technology aredifferent inter-device direct communications technologies.

In an embodiment, the communications device further includes adetermining unit. The determining unit is configured to determine afirst transmit power. In addition, the determining unit is furtherconfigured to determine a second transmit power. A sum of the firsttransmit power and the second transmit power is less than or equal to aconfigured power, and the configured power is preconfigured or isindicated by first signaling sent by a network device. The sending unitis configured to: send the first message on the first transmissionresource at the first transmit power determined by the determining unitand by using the first wireless access technology, and send the secondmessage on the second transmission resource at the second transmit powerdetermined by the determining unit and by using the second wirelessaccess technology.

In an embodiment, the sending unit is further configured to send firstindication information, where the first indication information is usedto indicate the first transmit power. In addition, the sending unit isfurther configured to send second indication information, where thesecond indication information is used to indicate the second transmitpower.

In an embodiment, the sending unit is configured to occupy the firsttransmission resource and the second transmission resource in a TDMmode.

In an embodiment, the obtaining unit is configured to: obtain a firstresource set and a second resource set of the first carrier, where atime-domain resource unit of the first resource set is determined basedon a subcarrier spacing of the first transmission resource, and atime-domain resource unit of the second resource set is determined basedon a subcarrier spacing of the second transmission resource; and obtainthe first transmission resource from the first resource set based onfirst configuration information, and obtain the second transmissionresource from the second resource set based on second configurationinformation, where the first configuration information is used toindicate at least one time-domain resource unit in the first resourceset, the second configuration information is used to indicate at leastone time-domain resource unit in the second resource set, the firstconfiguration information is preconfigured or is indicated by secondsignaling sent by the network device, and the second configurationinformation is preconfigured or is indicated by third signaling sent bythe network device.

In an embodiment, the obtaining unit is configured to: obtain a thirdresource set and a fourth resource set of the first carrier, where thefourth resource set is a subset of the third resource set, a time-domainresource unit of the third resource set is determined based on asubcarrier spacing of the second transmission resource, and atime-domain resource unit of the fourth resource set is determined basedon a subcarrier spacing of the first transmission resource; and obtainthe first transmission resource from the fourth resource set based onthird configuration information, where the third configurationinformation is used to indicate at least one time-domain resource unitin the fourth resource set, and the third configuration information ispreconfigured or is indicated by fourth signaling sent by the networkdevice.

In an embodiment, the first transmission resource and the secondtransmission resource both belong to a first resource pool and areorthogonal to each other. Alternatively, the first transmission resourcebelongs to a second resource pool, the second transmission resourcebelongs to a third resource pool, and the second resource pool and thethird resource pool are orthogonal to each other.

In an embodiment, the obtaining unit is configured to: determine thefirst carrier; or receive carrier indication information from thenetwork device, where the carrier indication information is used toindicate the first carrier, and obtain the first carrier according tothe carrier indication information.

In an embodiment, the determining unit is configured to: determine thefirst transmit power based on a priority of the first message, anddetermine the second transmit power based on a priority of the secondmessage. In an embodiment, the first transmit power is preconfigured oris indicated by signaling sent by the network device, and the secondtransmit power is preconfigured or is indicated by signaling sent by thenetwork device.

In an embodiment, the first transmission resource and the secondtransmission resource have a same radio frame number in time domain.Alternatively, there is a preset deviation value between radio framenumbers of the first transmission resource and the second transmissionresource in time domain, and the preset deviation value is preset or isindicated by signaling sent by the network device.

In an embodiment, the preset deviation value is N times a slot length ofthe first transmission resource, where N is a positive integer.

In an embodiment, a type of a synchronization reference source used bythe sending unit to send the first message is the same as that used tosend the second message. Alternatively, a synchronization referencesource transmission resource used to send the first message is the sameas a synchronization reference source used to send the second message.

In an embodiment, the first transmit power is positively correlated withthe subcarrier spacing of the first transmission resource.

In an embodiment, the second wireless access technology mayalternatively be a wireless access technology between a terminal and anaccess network device.

According to a third aspect, a communications device is provided. Thecommunications device includes: one or more processors, a memory, and acommunications interface. The memory and the communications interfaceare coupled to the one or more processors. The communications devicecommunicates with another device through the communications interface.The memory is configured to store computer program code. The computerprogram code includes an instruction. When the one or more processorsexecute the instruction, the communications device performs thecommunication method according to any one of the first aspect and thepossible implementations of the first aspect.

According to a fourth aspect, a computer-readable storage medium isfurther provided. The computer-readable storage medium stores aninstruction. When the instruction is run on a communications device, thecommunications device is enabled to perform the communication methodaccording to any one of the first aspect and the possibleimplementations of the first aspect.

According to a fifth aspect, a computer program product including aninstruction is further provided. When the computer program product isrun on a communications device, the communications device is enabled toperform the communication method according to any one of the firstaspect and the possible implementations of the first aspect.

According to a sixth aspect, a communication method is provided. Asecond communications device obtains a first carrier used to transmit afirst message and a second message, and obtains a first transmissionresource of the first carrier and a second transmission resourcedifferent from the first transmission resource. In this way, the secondcommunications device can receive the first message on the firsttransmission resource by using a first wireless access technology, andreceive the second message on the second transmission resource by usinga second wireless access technology. Herein, the first wireless accesstechnology and the second wireless access technology are differentinter-device direct communications technologies.

Because the first wireless access technology and a second access networktechnology are different inter-device direct communicationstechnologies, a first communications device can receive the firstmessage on the first transmission resource by using the first wirelessaccess technology, and can further receive the second message on thesecond transmission resource by using the second wireless accesstechnology, to achieve coexistence of two different types of services.Correspondingly, if the first wireless access technology is a V2Xcommunications technology in a 5G system, and the second wireless accesstechnology is a V2X communications technology in an LTE system,effective coexistence of the V2X communications technology in the LTEsystem and the V2X communications technology in the 5G system can beachieved by using the communication method provided in this application.

In an embodiment, the second communications device further obtains firstindication information used to indicate a transmit power of the firstmessage. In addition, the second communications device further obtainssecond indication information used to indicate a transmit power of thesecond message. A sum of the transmit power of the first message and thetransmit power of the second message is less than or equal to aconfigured power, and the configured power is preconfigured or isindicated by signaling sent by a network device.

In an embodiment, a method for obtaining the first transmission resourceand the second transmission resource of the first carrier by the secondcommunications device is: First, the second communications deviceobtains a first resource set and a second resource set of the firstcarrier, where a time-domain resource unit of the first resource set isdetermined based on a subcarrier spacing of the first transmissionresource, and a time-domain resource unit of the second resource set isdetermined based on a subcarrier spacing of the second transmissionresource. Then, the second communications device obtains the firsttransmission resource from the first resource set based on firstconfiguration information, and obtains the second transmission resourcefrom the second resource set based on second configuration information,where the first configuration information is used to indicate at leastone time-domain resource unit in the first resource set, the secondconfiguration information is used to indicate at least one time-domainresource unit in the second resource set, the first configurationinformation is preconfigured, is indicated by second signaling sent bythe network device, or is sent by a first communications device, and thesecond configuration information is preconfigured, is indicated by thirdsignaling sent by the network device, or is sent by a thirdcommunications device.

In an embodiment, a method for obtaining the first transmission resourceof the first carrier by the second communications device is: First, thesecond communications device obtains a third resource set and a fourthresource set of the first carrier, where the fourth resource set is asubset of the third resource set, a time-domain resource unit of thethird resource set is determined based on a subcarrier spacing of thesecond transmission resource, and a time-domain resource unit of thefourth resource set is determined based on a subcarrier spacing of thefirst transmission resource. Then, the second communications deviceobtains the first transmission resource from the fourth resource setbased on third configuration information, where the third configurationinformation is used to indicate at least one time-domain resource unitin the fourth resource set, and the third configuration information ispreconfigured, is indicated by fourth signaling sent by the networkdevice, or is sent by a first communications device.

In an embodiment, a method for obtaining the first carrier by the secondcommunications device is: The second communications device determinesthe first carrier. Alternatively, the second communications devicereceives carrier indication information from the network device, wherethe carrier indication information is used to indicate the firstcarrier, and the second communications device obtains the first carrieraccording to the carrier indication information.

In an embodiment, the first transmission resource and the secondtransmission resource have a same radio frame number in time domain.Alternatively, there is a preset deviation value between radio framenumbers of the first transmission resource and the second transmissionresource in time domain, and the preset deviation value is preset or isindicated by signaling sent by the network device.

In this application, timings of the first transmission resource and thesecond transmission resource are aligned in the unit of radio frames. Inthis way, when the two transmission resources are multiplexed in timedomain, a resource waste can be reduced.

In another possible design, the preset deviation value is N times a slotlength of the first transmission resource, where N is a positiveinteger.

In an embodiment, a type of a synchronization reference source used bythe second communications device to receive the first message is thesame as that used by the second communications device to receive thesecond message. Alternatively, a synchronization reference sourcetransmission resource used by the second communications device toreceive the first message is the same as a synchronization referencesource used by the second communications device to receive the secondmessage. In this way, a timing of transmission of the first messageremains the same as that of transmission of the second message, therebyavoiding mutual interference caused by different timings in a messagetransmission process.

In an embodiment, the second wireless access technology mayalternatively be a wireless access technology between a terminal and anaccess network device.

According to a seventh aspect, a communications device is provided. Thecommunications device is a second communications device. Thecommunications device includes an obtaining unit and a receiving unit.

In an embodiment, the obtaining unit is configured to: obtain a firstcarrier, where the first carrier is used to transmit a first message anda second message; and obtain a first transmission resource and a secondtransmission resource of the first carrier, where the first transmissionresource is used to receive the first message, the second transmissionresource is used to receive the second message, and the firsttransmission resource is different from the second transmissionresource. The receiving unit is configured to: receive, by using a firstwireless access technology, the first message on the first transmissionresource obtained by the obtaining unit; and receive, by using a secondwireless access technology, the second message on the secondtransmission resource obtained by the obtaining unit, where the firstwireless access technology and the second wireless access technology aredifferent inter-device direct communications technologies.

In an embodiment, the obtaining unit is further configured to: obtainfirst indication information, and obtain second indication information,where the first indication information is used to indicate a transmitpower of the first message, the second indication information is used toindicate a transmit power of the second message, a sum of the transmitpower of the first message and the transmit power of the second messageis less than or equal to a configured power, and the configured power ispreconfigured or is indicated by signaling sent by a network device.

In an embodiment, the obtaining unit is configured to: obtain a firstresource set and a second resource set of the first carrier, where atime-domain resource unit of the first resource set is determined basedon a subcarrier spacing of the first transmission resource, and atime-domain resource unit of the second resource set is determined basedon a subcarrier spacing of the second transmission resource; and obtainthe first transmission resource from the first resource set based onfirst configuration information, and obtain the second transmissionresource from the second resource set based on second configurationinformation, where the first configuration information is used toindicate at least one time-domain resource unit in the first resourceset, the second configuration information is used to indicate at leastone time-domain resource unit in the second resource set, the firstconfiguration information is preconfigured, is indicated by secondsignaling sent by the network device, or is sent by a firstcommunications device, and the second configuration information ispreconfigured, is indicated by third signaling sent by the networkdevice, or is sent by a third communications device.

In an embodiment, the obtaining unit is configured to: obtain a thirdresource set and a fourth resource set of the first carrier, where thefourth resource set is a subset of the third resource set, a time-domainresource unit of the third resource set is determined based on asubcarrier spacing of the second transmission resource, and atime-domain resource unit of the fourth resource set is determined basedon a subcarrier spacing of the first transmission resource; and obtainthe first transmission resource from the fourth resource set based onfourth configuration information, where third configuration informationis used to indicate at least one time-domain resource unit in the fourthresource set, and the third configuration information is preconfigured,is indicated by fourth signaling sent by the network device, or is sentby a first communications device.

In an embodiment, the first transmission resource and the secondtransmission resource both belong to a first resource pool and areorthogonal to each other. Alternatively, the first transmission resourcebelongs to a second resource pool, the second transmission resourcebelongs to a third resource pool, and the second resource pool and thethird resource pool are orthogonal to each other.

In an embodiment, the obtaining unit is configured to: determine thefirst carrier; or receive carrier indication information from thenetwork device, where the carrier indication information is used toindicate the first carrier, and obtain the first carrier according tothe carrier indication information.

In an embodiment, the first transmission resource and the secondtransmission resource have a same radio frame number in time domain.Alternatively, there is a preset deviation value between radio framenumbers of the first transmission resource and the second transmissionresource in time domain, and the preset deviation value is preset or isindicated by signaling sent by the network device.

In an embodiment, the preset deviation value is N times a slot length ofthe first transmission resource, where N is a positive integer.

In an embodiment, a type of a synchronization reference source used bythe receiving unit to receive the first message is the same as that usedto receive the second message. Alternatively, a synchronizationreference source transmission resource used by the receiving unit toreceive the first message is the same as a synchronization referencesource used by the second communications device to receive the secondmessage.

In an embodiment, the second wireless access technology mayalternatively be a wireless access technology between a terminal and anaccess network device.

According to an eighth aspect, a communications device is provided. Thecommunications device includes: one or more processors, a memory, and acommunications interface. The memory and the communications interfaceare coupled to the one or more processors. The communications devicecommunicates with another device through the communications interface.The memory is configured to store computer program code. The computerprogram code includes an instruction. When the one or more processorsexecute the instruction, the communications device performs thecommunication method according to any one of the sixth aspect and thepossible implementations of the sixth aspect.

According to a ninth aspect, a computer-readable storage medium isfurther provided. The computer-readable storage medium stores aninstruction. When the instruction is run on a communications device, thecommunications device is enabled to perform the communication methodaccording to any one of the sixth aspect and the possibleimplementations of the sixth aspect.

According to a tenth aspect, a computer program product including aninstruction is further provided. When the computer program product isrun on a communications device, the communications device is enabled toperform the communication method according to any one of the sixthaspect and the possible implementations of the sixth aspect.

In any one of the foregoing aspects or the possible embodiments, thefirst transmission resource and the second transmission resource bothbelong to the first resource pool and are orthogonal to each other.Alternatively, the first transmission resource belongs to the secondresource pool, the second transmission resource belongs to the thirdresource pool, and the second resource pool and the third resource poolare orthogonal to each other. Herein, “orthogonal” means that occupiedfrequency domain resources are different. Orthogonality of the firsttransmission resource and the second transmission resource can achievefair coexistence of two types of services.

In any one of the foregoing aspects or the possible embodiments, thesubcarrier spacing of the first transmission resource and the subcarrierspacing of the second transmission resource may be separately configuredor separately defined. In an actual application, the subcarrier spacingof the first transmission resource and the subcarrier spacing of thesecond transmission resource may be equal or not equal.

According to an eleventh aspect, a communication method is provided. Afirst communications device obtains a first carrier used to transmit afirst message and a carrier used to transmit a second message, and thendetermines a first transmit power for sending the first message on thefirst carrier and a second transmit power for sending the second messageon the second carrier, where a sum of the first transmit power and thesecond transmit power is less than or equal to a configured power. Inthis way, the first communications device can send the first message onthe first carrier at the first transmit power and by using a firstwireless access technology, and send the second message on the secondcarrier at the second transmit power and by using a second wirelessaccess technology. The first wireless access technology and the secondwireless access technology are different inter-device directcommunications technologies, and the configured power is preconfiguredor is indicated by first signaling sent by a network device.

Because the first wireless access technology and a second access networktechnology are different inter-device direct communicationstechnologies, the first communications device can send the first messageon the first carrier by using the first wireless access technology, andcan further send the second message on the second carrier by using thesecond wireless access technology, to achieve coexistence of twodifferent types of services. Correspondingly, if the first wirelessaccess technology is a V2X communications technology in a 5G system, andthe second wireless access technology is a V2X communications technologyin an LTE system, effective coexistence of the V2X communicationstechnology in the LTE system and the V2X communications technology inthe 5G system can be achieved by using the communication method providedin this application.

In an embodiment, a method for determining, by the first communicationsdevice, the first transmit power for sending the first message on thefirst carrier is: The first communications device determines the firsttransmit power based on a priority of the first carrier or a priority ofthe first message. A method for determining, by the first communicationsdevice, the second transmit power for sending the second message on thesecond carrier is: The first communications device determines the secondtransmit power based on a priority of the second carrier or a priorityof the second message.

In an embodiment, if the first communications device does not send thefirst message but sends the second message in a first slot, the firsttransmit power is 0, and the second transmit power is the configuredpower.

In an embodiment, the first transmission resource and the secondtransmission resource have a same radio frame number in time domain.

In this application, timings of the first transmission resource and thesecond transmission resource are aligned in the unit of radio frames. Inthis way, when the two transmission resources are multiplexed in timedomain, a resource waste can be reduced.

In an embodiment, a type of a synchronization reference source used bythe first communications device to send the first message is the same asthat used by the first communications device to send the second message.Alternatively, a synchronization reference source transmission resourceused by the first communications device to send the first message is thesame as a synchronization reference source used by the firstcommunications device to send the second message. In this way, a timingof transmission of the first message remains the same as that oftransmission of the second message, thereby avoiding mutual interferencecaused by different timings in a message transmission process.

In an embodiment, the first transmit power at which the firstcommunications device sends the first message is positively correlatedwith a subcarrier spacing of the first transmission resource.

In an embodiment, the second wireless access technology mayalternatively be a wireless access technology between a terminal and anaccess network device.

According to a twelfth aspect, a communications device is provided. Thecommunications device is a first communications device. Thecommunications device includes an obtaining unit, a determining unit,and a sending unit.

In an embodiment, the obtaining unit is configured to: obtain a firstcarrier used to transmit a first message, and obtain a carrier used totransmit a second message. The determining unit is configured to:determine a first transmit power for sending the first message on thefirst carrier obtained by the obtaining unit, and determine a secondtransmit power for sending the second message on the second carrierobtained by the obtaining unit, where a sum of the first transmit powerand the second transmit power is less than or equal to a configuredpower. The sending unit is configured to: send the first message on thefirst carrier obtained by the obtaining unit, at the first transmitpower determined by the determining unit and by using a first wirelessaccess technology; and send the second message on the second carrierobtained by the obtaining unit, at the second transmit power determinedby the determining unit and by using a second wireless accesstechnology. The first wireless access technology and the second wirelessaccess technology are different inter-device direct communicationstechnologies, and the configured power is preconfigured or is indicatedby first signaling sent by a network device.

In a possible design, the determining unit is configured to: determinethe first transmit power based on a priority of the first carrier or apriority of the first message, and determine the second transmit powerbased on a priority of the second carrier or a priority of the secondmessage.

In an embodiment, if the sending unit does not send the first messagebut sends the second message in a first slot, the first transmit poweris 0, and the second transmit power is the configured power.

In an embodiment, the first transmission resource and the secondtransmission resource have a same radio frame number in time domain.

In an embodiment, a type of a synchronization reference source used bythe sending unit to send the first message is the same as that used tosend the second message. Alternatively, a synchronization referencesource transmission resource used by the sending unit to send the firstmessage is the same as a synchronization reference source used to sendthe second message.

In an embodiment, the first transmit power is positively correlated witha subcarrier spacing of the first transmission resource.

In an embodiment, the second wireless access technology mayalternatively be a wireless access technology between a terminal and anaccess network device.

According to a thirteenth aspect, a communications device is provided.The communications device includes: one or more processors, a memory,and a communications interface. The memory and the communicationsinterface are coupled to the one or more processors. The communicationsdevice communicates with another device through the communicationsinterface. The memory is configured to store computer program code. Thecomputer program code includes an instruction. When the one or moreprocessors execute the instruction, the communications device performsthe communication method according to any one of the eleventh aspect andthe possible implementations of the eleventh aspect.

According to a fourteenth aspect, a computer-readable storage medium isfurther provided. The computer-readable storage medium stores aninstruction. When the instruction is run on a communications device, thecommunications device is enabled to perform the communication methodaccording to any one of the eleventh aspect and the possibleimplementations of the eleventh aspect.

According to a fifteenth aspect, a computer program product including aninstruction is further provided. When the computer program product isrun on a communications device, the communications device is enabled toperform the communication method according to any one of the eleventhaspect and the possible implementations of the eleventh aspect.

In this application, a name of the foregoing communications device doesnot constitute any limitation to devices or function modules. In anactual implementation, these devices or function modules may have othernames. Provided that functions of the devices or the function modulesare similar to those in this application, the devices or the functionmodules fall within the scope of the claims in this application andtheir equivalent technologies.

In this application, for detailed descriptions of the second aspect, thethird aspect, the fourth aspect, the fifth aspect, and variousimplementations of the second aspect, the third aspect, the fourthaspect, and the fifth aspect, refer to the detailed descriptions of thefirst aspect and the implementations of the first aspect. In addition,for beneficial effects of the second aspect, the third aspect, thefourth aspect, the fifth aspect, and the various implementations of thesecond aspect, the third aspect, the fourth aspect, and the fifthaspect, refer to analysis of the beneficial effects of the first aspectand the implementations of the first aspect. Details are not describedherein again.

These aspects or other aspects in this application are more concise andcomprehensible in the following descriptions.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a first schematic structural diagram of a communicationssystem according to an embodiment of this application;

FIG. 2 is a first schematic diagram of an application scenario accordingto this application;

FIG. 3 is a second schematic diagram of an application scenarioaccording to this application;

FIG. 4 is a second schematic structural diagram of a communicationssystem according to an embodiment of this application;

FIG. 5 is a schematic diagram of a hardware structure of a mobile phoneaccording to an embodiment of this application;

FIG. 6 is a schematic diagram of a hardware structure of a base stationaccording to an embodiment of this application;

FIG. 7 is a first schematic flowchart of a communication methodaccording to an embodiment of this application;

FIG. 8 is a first schematic structural diagram of a first transmissionresource and a second transmission resource according to an embodimentof this application;

FIG. 9A is a second schematic structural diagram of a first transmissionresource and a second transmission resource according to an embodimentof this application;

FIG. 9B is a third schematic structural diagram of a first transmissionresource and a second transmission resource according to an embodimentof this application;

FIG. 10 is a second schematic flowchart of a communication methodaccording to an embodiment of this application;

FIG. 11 is a third schematic flowchart of a communication methodaccording to an embodiment of this application;

FIG. 12 is a fourth schematic flowchart of a communication methodaccording to an embodiment of this application;

FIG. 13 is a fifth schematic flowchart of a communication methodaccording to an embodiment of this application;

FIG. 14 is a sixth schematic flowchart of a communication methodaccording to an embodiment of this application;

FIG. 15 is a seventh schematic flowchart of a communication methodaccording to an embodiment of this application;

FIG. 16 is an eighth schematic flowchart of a communication methodaccording to an embodiment of this application;

FIG. 17 is a first schematic structural diagram of a communicationsdevice according to an embodiment of this application;

FIG. 18 is a second schematic structural diagram of a communicationsdevice according to an embodiment of this application; and

FIG. 19 is a third schematic structural diagram of a communicationsdevice according to an embodiment of this application.

DESCRIPTION OF EMBODIMENTS

Internet of vehicles refers to a system that provides vehicleinformation by using a sensor, an apparatus, a chip, a vehicle-mountedterminal, or an electronic label that is mounted on a vehicle,implements interconnection and interworking among V2V, V2P, and V2Icommunications technologies by using various communicationstechnologies, effectively uses, for example, extracts or shares,information on an information network platform, effectively manages andcontrols the vehicle, and provides a comprehensive service.

The V2V, V2P, and V2I communications technologies may be collectivelyreferred to as a V2X communications technology. A V2X communicationstechnology in an LTE system includes Release 14 (Rel-14) and Release 15(Rel-15).

Currently, a vehicle-mounted chip that supports the V2X communicationstechnology in the LTE system has appeared in the market, andexperiments, tests, and small-scale application are in progress. For a5G system deployed in 2020, research on a V2X communications technologyin the 5G system has also been started. Correspondingly, researchersneed to consider coexistence of the V2X communications technology in the5G system and the V2X communications technology in the LTE system. Ifthe V2X communications technology in the 5G system and the V2Xcommunications technology in the LTE system cannot coexist fairly,interference between the two systems occurs, reducing performance andtransmission efficiency of the systems; and even messages transmittedbetween the two systems cannot be identified by each other. A scenarioin which a communications module fails due to non-coexistence of the V2Xcommunications technology in the LTE system and the V2X communicationstechnology in the 5G system and therefore a major traffic accidentoccurs is unacceptable.

Currently, there is no method for achieving effective coexistence of theV2X communications technology in the LTE system and the V2Xcommunications technology in the 5G system. To resolve this problem, theembodiments of this application provide a communication method. Afterobtaining a first carrier that can be used to transmit a first messageand a second message, a first communications device obtains a firsttransmission resource used to send the first message and a secondtransmission resource used to send the second message on the firstcarrier, sends the first message on the first transmission resource byusing a first wireless access technology, and sends the second messageon the second transmission resource by using a second wireless accesstechnology. Herein, the first transmission resource and the secondtransmission resource are different, and the first wireless accesstechnology and the second wireless access technology are differentinter-device direct communications technologies.

Because the first wireless access technology and a second access networktechnology are different, and the first transmission resource and thesecond transmission resource are different, the first communicationsdevice can send the first message on the first transmission resource byusing the first wireless access technology, and can further send thesecond message on the second transmission resource by using the secondwireless access technology, to achieve coexistence of two differenttypes of services. Correspondingly, if the first wireless accesstechnology is a V2X communications technology in a 5G system, and thesecond wireless access technology is a V2X communications technology inan LTE system, effective coexistence of the V2X communicationstechnology in the LTE system and the V2X communications technology inthe 5G system can be achieved by using the communication method providedin this application.

The communication method provided in the embodiments of this applicationis applicable to a communications system, and the communications systemsupports transmission of different types of service data.

FIG. 1 is a schematic structural diagram of a communications systemaccording to an embodiment of this application. Referring to FIG. 1 ,the communications system includes a remote device 10, a relay device11, and a global navigation satellite system (GNSS) 12. The remotedevice 10 may communicate with the GNSS 12 via the relay device 11, ormay directly communicate with the GNSS 12.

A connection between the remote device 10 and the relay device 11 may bea 3GPP connection, or may be a non-3GPP connection. The 3GPP connectionmay be implemented by a device-to-device (D2D)/V2X communicationstechnology. The non-3GPP connection may be implemented by any one ofwireless short-range communications technologies such as Bluetooth (BT),wireless fidelity (Wi-Fi), near field communication (NFC), and infrared.This is not limited in the embodiments of this application.

The remote device 10 in this embodiment of this application may be aterminal such as a smart water meter or a smart electricity meter in aninternet of things, or may be a vehicle-mounted terminal mounted on avehicle in an internet of vehicles, or may be an intelligent wearabledevice such as a wearable device (WD).

The relay device 11 in this embodiment of this application is a terminalhaving a relay attribute. The terminal is a wireless terminal that canprovide various available network connection capabilities such as D2D,BT, Wi-Fi, NFC, and infrared.

In an embodiment, the communications system shown in FIG. 1 may furtherinclude a base station 13.

The base station 13 may be a next generation LTE base station (NextGeneration eNB, ng-eNB), or may be a gNB (e.g., a base station in the 5Gsystem). This is not limited in this embodiment of this application. Theng-eNB may provide a wireless transmission resource for the terminal byusing an evolved universal terrestrial radio access (E-UTRA) technology,or may provide a service of a 5th generation core network (5GCN) for theterminal.

The base station 13 may serve the remote device 10 and/or the relaydevice 11. The base station 13 may further communicate with the GNSS 12.The remote device 10 may communicate with the base station 13 via therelay device 11, or may directly communicate with the base station 13.In an actual application, a base station serving the remote device 10may be the same as or different from a base station serving the relaydevice 11.

In an embodiment, when the communications system is applied to aninternet of vehicles scenario, the communications system may furtherinclude a road side unit (RSU) 14. The RSU 14 may communicate with theremote device 10, the relay device 11, and the base station 13. The RSU14 may have a function of a vehicle-mounted terminal mounted on avehicle, or may have a function of a base station.

Any device in FIG. 1 can support transmission of LTE service data and 5Gservice data.

In an actual application, connections among the foregoing plurality ofdevices are wireless connections. Solid lines are used in FIG. 1 toconveniently and intuitively represent connection relationships amongthe devices.

It should be noted that FIG. 1 shows, for description, merely an exampleof the communications system provided in the embodiments of thisapplication, and does not limit the communications system. In an actualapplication, the communications system may alternatively include atleast one relay device, at least one RSU, and at least one base station.

In a scenario in which the communications system in this applicationincludes a base station, a remote device may be located within networkcoverage of the base station, and directly establishes a radio resourcecontrol (RRC) connection to the base station or receives a broadcastmessage sent by the base station. However, when data is transmittedbetween the remote device and the base station, the data needs to beforwarded by a relay device. For example, with reference to FIG. 1 , asshown in FIG. 2 , a remote device 20 is located within network coverageof a base station gNB 1, and may transmit data with the gNB 1 via arelay device 21, and transmit data with a gNB 2 via a relay device 22.

In addition, a remote device may alternatively be located outside thenetwork coverage of the base station, and receives a signal sent by arelay device within the network coverage of the base station. Forexample, with reference to FIG. 1 , as shown in FIG. 3 , a remote device30 is located outside network coverage of a gNB 1 and a gNB 2, and mayreceive both signals sent by a relay device 31 and a relay device 32that are respectively within the network coverage of the gNB 1 and thegNB 2.

FIG. 4 is another schematic structural diagram of a communicationssystem according to an embodiment of this application. Referring to FIG.4 , the communications system includes a base station 40, a base station41, and a base station 42. The base station 40 is connected to both thebase station 41 and the base station 42, and the base station 41 is alsoconnected to both the base station 40 and the base station 42. The basestation 41, the base station 40, and the base station 42 may all bemacro base stations, or may all be micro base stations, or some may bemacro base stations and the other may be micro base stations. Any basestation in FIG. 4 can support transmission of LTE service data and 5Gservice data.

Similarly, in an actual application, connections among the foregoingbase stations are wireless connections. Solid lines are used in FIG. 4to conveniently and intuitively represent connection relationships amongthe base stations.

It should be noted that FIG. 4 shows, for description, merely an exampleof the communications system provided in the embodiments of thisapplication, and does not limit the communications system. In an actualapplication, each base station may further serve at least one terminal.

The remote device and the relay device in the embodiments of thisapplication each may be a terminal that can implement data transmissionwith the base station on a control plane and a user plane. The terminalmay be a mobile phone (a mobile phone 300 shown in FIG. 5 ), a tabletcomputer, a personal computer (PC), a personal digital assistant (PDA),a smartwatch, a netbook, a wearable electronic device, or the like.

As shown in FIG. 5 , the mobile phone 300 is used as an example of theforegoing terminal. The mobile phone 300 may include: a processor 301, aradio frequency (RF) circuit 302, a memory 303, a peripheral interface304, and a power supply apparatus 305. In an embodiment, the mobilephone 300 may further include components such as a touchscreen 306, aBluetooth apparatus 307, one or more sensors 308, a Wi-Fi apparatus 309,a positioning apparatus 310, and an audio circuit 311. These componentsmay communicate with each other via one or more communications buses orsignal cables (not shown in FIG. 5 ).

The touchscreen 306, the Bluetooth apparatus 307, the one or moresensors 308, the wireless fidelity (Wi-Fi) apparatus 309, thepositioning apparatus 310, and the audio circuit 311 are optionalcomponents, and therefore are represented by dashed-line boxes in FIG. 5.

The following describes in detail the components of the mobile phone 300with reference to FIG. 5 .

The processor 301 is a control center of the mobile phone 300, isconnected to all parts of the mobile phone 300 via various interfacesand lines, and performs various functions of the mobile phone 300 andprocesses data by running or executing an application program stored inthe memory 303 and invoking data stored in the memory 303. In someembodiments, the processor 301 may include one or more processing units.In some embodiments of this application, the processor 301 may furtherinclude a fingerprint verification chip, configured to verify acollected fingerprint.

The radio frequency circuit 302 may be configured to receive and send aradio signal in an information receiving/sending process or a callprocess. Particularly, after receiving downlink data from a basestation, the radio frequency circuit 302 may send the downlink data tothe processor 301 for processing, and sends related uplink data to thebase station. Generally, a radio frequency circuit includes but is notlimited to an antenna, at least one amplifier, a transceiver, a coupler,a low noise amplifier, a duplexer, and the like. In addition, the radiofrequency circuit 302 may further communicate with another devicethrough wireless communication. The wireless communication may use anycommunication standard or protocol, including but not limited to globalsystem for mobile communications, general packet radio service, codedivision multiple access, wideband code division multiple access, longterm evolution, email, SMS message service, and the like.

The memory 303 is configured to store the application program and thedata. The processor 301 performs various functions of the mobile phone300 and processes data by running the application program and the datathat are stored in the memory 303. The memory 303 mainly includes aprogram storage area and a data storage area. The program storage areamay store an operating system, and an application program used for atleast one function (for example, a sound playing function or an imageprocessing function). The data storage area may store data (for example,audio data or a phone book) created based on use of the mobile phone300.

In addition, the memory 303 may include a high-speed random accessmemory (RAM), and may further include a non-volatile memory such as amagnetic disk storage component, a flash memory, or another volatilesolid-state storage component. The memory 303 may store variousoperating systems such as an iOS operating system and an Androidoperating system. The memory 303 may be standalone, and is connected tothe processor 301 via the communications bus; or the memory 303 may beintegrated with the processor 301.

The peripheral interface 304 is configured to provide various interfacesfor an external input/output device (for example, a keyboard, a mouse,an external display, an external memory, or a subscriber identificationmodule card). For example, the peripheral interface 304 is connected tothe mouse through a universal serial bus (USB) interface, and isconnected, through a metal contact on a card slot of the subscriberidentification module (SIM) card, to the subscriber identificationmodule card provided by a telecommunications operator. The peripheralinterface 304 may be configured to couple the external input/outputperipheral device to the processor 301 and the memory 303.

The power supply apparatus 305 is configured to supply power to thecomponents of the mobile phone 300. The power supply apparatus 305 maybe a battery and a power management chip. The battery may be logicallyconnected to the processor 301 via the power management chip, toimplement functions such as charging management, discharging management,and power consumption management via the power supply apparatus 305.

The touchscreen 306 may include a touchpad 306-1 and a display 306-2.

The touchpad 306-1 may collect a touch event performed by a user of themobile phone 300 on or near the touchpad 306-1 (for example, anoperation performed by the user on or near the touchpad 306-1 by usingany proper object such as a finger or a stylus), and send collectedtouch information to another component (for example, the processor 301).The touch event performed by the user near the touchpad 306-1 may bereferred to as a floating touch. The floating touch may mean that a userdoes not need to directly touch a touchpad to select, move, or drag anobject (for example, an icon), and instead, the user only needs to benear a device to perform a desired function. In addition, the touchpad306-1 may be implemented in a plurality of types such as a resistivetype, a capacitive type, an infrared type, and a surface acoustic wavetype.

The display (also referred to as a display) 306-2 may be configured todisplay information entered by the user or information provided for theuser, and various menus of the mobile phone 300. The display 306-2 maybe configured in a form such as a liquid crystal display or an organiclight-emitting diode. The touchpad 306-1 may cover the display 306-2.After detecting the touch event on or near the touchpad 306-1, thetouchpad 306-1 transfers the touch event to the processor 301 todetermine a type of the touch event. Then, the processor 301 may providecorresponding visual output on the display 306-2 based on the type ofthe touch event. Although the touchpad 306-1 and the display 306-2 inFIG. 5 are used as two independent components to implement input andoutput functions of the mobile phone 300, in some embodiments, thetouchpad 306-1 and the display 306-2 may be integrated to implement theinput and output functions of the mobile phone 300. It may be understoodthat the touchscreen 306 is formed by stacking a plurality of layers ofmaterials. In this embodiment of this application, only the touchpad(layer) and the display (layer) are displayed, and another layer is notset forth in this embodiment of this application. In addition, thetouchpad 306-1 may be disposed on a front face of the mobile phone 300in a form of a full panel, and the display 306-2 may also be disposed onthe front face of the mobile phone 300 in a form of a full panel. Inthis way, a bezel-less structure can be implemented for the front faceof the mobile phone.

In an embodiment, the mobile phone 300 may further have a fingerprintrecognition function. For example, a fingerprint collection component312 may be disposed on a back face (for example, below a rear-facingcamera) of the mobile phone 300, or may be disposed on the front face(for example, below the touchscreen 306) of the mobile phone 300. Foranother example, a fingerprint collection component 312 may be disposedon the touchscreen 306 to implement the fingerprint recognitionfunction. In other words, the fingerprint collection component 312 maybe integrated with the touchscreen 306 to implement the fingerprintrecognition function of the mobile phone 300. In this case, thefingerprint collection component 312 is disposed on the touchscreen 306,and may be a part of the touchscreen 306; or may be disposed on thetouchscreen 306 in another manner. A main part of the fingerprintcollection component 312 in this embodiment of this application is afingerprint sensor. The fingerprint sensor may use any type of sensingtechnology, including but not limited to an optical sensing technology,a capacitive sensing technology, a piezoelectric sensing technology, anultrasonic sensing technology, or the like.

The Bluetooth apparatus 307 is configured to implement data exchangebetween the mobile phone 300 and another short-range device (such as amobile phone or a smartwatch). In this embodiment of this application,the Bluetooth apparatus may be an integrated circuit, a Bluetooth chip,or the like.

The mobile phone 300 may further include at least one type of sensor308, such as a light sensor, a motion sensor, and another sensor.Specifically, the light sensor may include an ambient light sensor and aproximity sensor. The ambient light sensor may adjust luminance of thedisplay of the touchscreen 306 based on intensity of ambient light. Theproximity sensor may power off the display when the mobile phone 300 ismoved to the ear. As one type of the motion sensor, an accelerometersensor may detect a value of acceleration in each direction (usually onthree axes). The accelerometer sensor may detect a value and a directionof gravity when the accelerometer sensor is stationary, and may beapplied to an application for identifying a mobile phone posture (suchas screen switching between a landscape mode and a portrait mode, arelated game, or magnetometer posture calibration), a function relatedto vibration recognition (such as a pedometer or a knock), and the like.For another sensor such as a gyroscope, a barometer, a hygrometer, athermometer, or an infrared sensor that may be further disposed in themobile phone 300, details are not described herein.

The Wi-Fi apparatus 309 is configured to provide, for the mobile phone300, network access that complies with a Wi-Fi-related standardprotocol. The mobile phone 300 may access a Wi-Fi access point throughthe Wi-Fi apparatus 309, to help the user send and receive an email,browse a web page, access streaming media, and so on. The Wi-Fiapparatus 309 provides wireless broadband internet access for the user.In some other embodiments, the Wi-Fi apparatus 309 may also be used as aWi-Fi wireless access point, and may provide Wi-Fi network access foranother device.

The positioning apparatus 310 is configured to provide a geographicallocation for the mobile phone 300.

It may be understood that the positioning apparatus 310 may be areceiver of a positioning system such as a global positioning system(GPS), a BeiDou navigation satellite system, or a Russian GLONASS. Afterreceiving a geographic location sent by the positioning system, thepositioning apparatus 310 sends the information to the processor 301 forprocessing, or sends the information to the memory 303 for storage.

In some other embodiments, the positioning apparatus 310 mayalternatively be a receiver of an assisted global positioning system(AGPS). The AGPS system serves as an assisted server to assist thepositioning apparatus 310 in completing ranging and positioningservices. In this case, the assisted positioning server communicateswith the positioning apparatus 310 (namely, a GPS receiver) of a devicesuch as the mobile phone 300 through a wireless communications network,to provide positioning assistance.

In some other embodiments, the positioning apparatus 310 mayalternatively be a positioning technology based on a Wi-Fi access point.Each Wi-Fi access point has a globally unique MAC address, and a devicemay scan and collect a broadcast signal of a surrounding Wi-Fi accesspoint when Wi-Fi is enabled. Therefore, the device may obtain a MACaddress broadcast by the Wi-Fi access point. The device sends, to alocation server through the wireless communications network, data (forexample, the MAC address) that can identify the Wi-Fi access point. Thelocation server obtains a geographical location of each Wi-Fi accesspoint through retrieval, calculates a geographical location of thedevice with reference to strength of the Wi-Fi broadcast signal, andsends the geographical location of the device to the positioningapparatus 310 of the device.

The audio circuit 311, a speaker 313, and a microphone 314 may providean audio interface between the user and the mobile phone 300. The audiocircuit 311 may convert received audio data into an electrical signaland then send the electrical signal to the speaker 313, and the speaker313 converts the electrical signal into a sound signal for output. Inaddition, the microphone 314 converts a collected sound signal into anelectrical signal. The audio circuit 311 receives the electrical signal,converts the electrical signal into audio data, and then outputs theaudio data to the RF circuit 302, to send the audio data to, forexample, another mobile phone, or outputs the audio data to the memory303 for further processing.

Although not shown in FIG. 5 , a camera (a front-facing camera and/orthe rear-facing camera), a flash, a micro projection apparatus, an NFCapparatus, and the like may be further included in the mobile phone 300.Details are not described herein.

A person skilled in the art may understand that the hardware structureshown in FIG. 5 does not constitute a limitation on the mobile phone,and the mobile phone 300 may include more or fewer components than thoseshown in the figure, or some components may be combined, or the mobilephone 300 may have different component arrangements.

FIG. 6 shows a composition structure of a base station (gNB/ng-eNB)according to an embodiment of this application. As shown in FIG. 6 , thebase station may include a processor 61, a memory 62, and a bus 63.

The components of the base station are described in detail below withreference to FIG. 6 .

The processor 61 is a control center of the base station, and may be oneprocessor, or may be a general term of a plurality of processingelements. For example, the processor 61 is a CPU, or may be anapplication-specific integrated circuit (ASIC), or one or moreintegrated circuits configured to implement the embodiments of thisapplication, such as one or more microprocessors (DSP) or one or morefield programmable gate arrays (FPGA).

The processor 61 may perform various functions of the base station byrunning or executing a software program stored in the memory 62 andinvoking data stored in the memory 62.

During specific implementation, in an embodiment, the processor 61 mayinclude one or more CPUs, for example, a CPU 0 and a CPU 1 shown in thefigure. The processor 61 may be a single-core (single-CPU) processor ormay be a multi-core (multi-CPU) processor. The processor herein mayrefer to one or more devices, circuits, and/or processing coresconfigured to process data (for example, a computer programinstruction).

The memory 62 may be a read-only memory (ROM) or another type of staticstorage device that can store static information and instructions, or arandom access memory (RAM) or another type of dynamic storage devicethat can store information and instructions; or may be an electricallyerasable programmable read-only memory (EEPROM), a compact discread-only memory (CD-ROM) or another compact disc storage, optical discstorage (including a compact disc, a laser disc, an optical disc, adigital versatile disc, a Blu-ray optical disc, or the like), a magneticdisk storage medium or another magnetic storage device, or any othermedium that can be used to carry or store expected program code in aform of an instruction or a data structure and that can be accessed by acomputer. However, the memory 62 is not limited thereto. The memory 62may exist independently, and may be connected to the processor 61 viathe bus 63. The memory 62 may alternatively be integrated with theprocessor 61.

The memory 62 is configured to store a software program for executingthe solutions of this application, and the processor 61 controls theexecution.

The bus 63 may be an industry standard architecture (ISA) bus, aperipheral component interconnect (Peripheral Component Interconnect,PCI) bus, an extended industry standard architecture (EISA) bus, or thelike. The bus may be classified into an address bus, a data bus, acontrol bus, and the like. For ease of representation, only one thickline is used to represent the bus in FIG. 6 , but this does not meanthat there is only one bus or only one type of bus.

In an embodiment, the base station further includes a transceiver 64.The transceiver 64 is configured to communicate with another device or acommunications network under control of the processor 61, for example,configured to communicate with a communications network such as theEthernet, a radio access network (RAN), or a wireless local area network(WLAN). The transceiver 64 may include a part or an entirety of abaseband processor, and may further include an RF processor. The RFprocessor is configured to send and receive an RF signal. The basebandprocessor is configured to process a baseband signal converted from theRF signal or a baseband signal to be converted into the RF signal.

The transceiver 64 is optional, and therefore is represented by a dashedline in FIG. 6 .

The device structure shown in FIG. 6 does not constitute a limitation onthe base station. The base station may include more or fewer componentsthan those shown in the figure, or some components may be combined, orthe base station may have different component arrangements.

The following describes in detail the communication method provided inthis application with reference to the communications system shown inFIG. 1 , the communications system shown in FIG. 4 , the mobile phone300 shown in FIG. 5 , and the base station shown in FIG. 6 .

FIG. 7 is a schematic flowchart of a communication method according toan embodiment of this application. The communication method may beapplied to the communications system shown in FIG. 1 or FIG. 4 .

A procedure shown in FIG. 7 is described by using an example in whichthe procedure is performed by a first communications device. The firstcommunications device is a transmit-end device, and may be the remotedevice, the relay device, the RSU, or the base station above, orcertainly may be a chip in any one of the foregoing devices. This is notlimited in this embodiment of this application.

As shown in FIG. 7 , the communication method provided in thisembodiment of this application includes the following operations.

S700. The first communications device obtains a first carrier used totransmit a first message and a second message.

Herein, the first message or the second message may be a messageincluding control information, or may be a parameter signal, or may beanother type of message. This is not limited in this embodiment of thisapplication.

In this embodiment of this application, the first message is transmittedby using a first wireless access technology, the second message istransmitted by using a second wireless access technology, and the firstwireless access technology and the second wireless access technology aredifferent inter-device direct communications technologies. For example,the first wireless access technology is an inter-device directcommunications technology in a next-generation access network (NR), thatis, a V2X communications technology in a 5G system; and the secondwireless access technology is a V2X communications technology in an LTEsystem.

In an inter-device direct communications technology, a link betweendevices may be referred to as a D2D link, and may also be referred to asa sidelink. Transmission between different devices on the D2Dlink/sidelink may be performed in any one of a broadcast mode, amulticast mode, or a unicast mode. This is not limited in thisembodiment of this application.

In addition, the second wireless access technology in this embodiment ofthis application may alternatively be a wireless access technologybetween a terminal and an access network device (such as a basestation).

If the first wireless access technology is an inter-device directcommunications technology in NR, and the second wireless accesstechnology is a wireless access technology between a terminal and anaccess network device, the communication method provided in thisapplication is applicable to achievement of sharing/coexistence oftransmission resources on a cellular link.

The first carrier in this embodiment of this application may bepreconfigured, or may be indicated by a network device by using carrierconfiguration indication information. This is not limited in thisembodiment of this application. If the first carrier is preconfigured,the first communications device directly determines the first carrier.If the first carrier is indicated by the network device by using thecarrier configuration indication information, the first communicationsdevice receives, from the network device, the carrier indicationinformation used to indicate the first carrier, and obtains the firstcarrier according to the carrier indication information.

S701. The first communications device obtains a first transmissionresource and a second transmission resource of the first carrier.

It is easily understood that because the first carrier is used totransmit the first message and the second message, and the firstcommunications device transmits the first message and the second messageby using different wireless access technologies, the first message andthe second message may be carried on different transmission resources.

In an embodiment of this application, a transmission resource forsending the first message is the first transmission resource, atransmission resource for sending the second message is the secondtransmission resource, and the first transmission resource and thesecond transmission resource are different.

A subcarrier spacing of the first transmission resource and a subcarrierspacing of the second transmission resource are independent of eachother. In other words, the subcarrier spacing of the first transmissionresource and the subcarrier spacing of the second transmission resourcemay be separately configured or separately defined. In an actualapplication, the subcarrier spacing of the first transmission resourceand the subcarrier spacing of the second transmission resource may beequal or not equal.

In addition, the first transmission resource and the second transmissionresource have a same radio frame number in time domain. For example, adirect frame number (DFN) of the first transmission resource is the sameas that of the second transmission resource. Alternatively, there is apreset deviation value between a radio frame number of the firsttransmission resource and a radio frame number of the secondtransmission resource in time domain. The preset deviation value may bepredefined, or may be indicated by the network device by usingsignaling. For example, the preset deviation value is N times a slotlength of the first transmission resource, where N is a positiveinteger.

Because the first transmission resource and the second transmissionresource have a same radio frame number in time domain, or there is apreset deviation value between the radio frame number of the firsttransmission resource and the radio frame number of the secondtransmission resource in time domain, in this embodiment of thisapplication, timings of the first transmission resource and the secondtransmission resource may be aligned in the unit of radio frames. Inthis way, a resource waste caused by multiplexing the first transmissionresource and the second transmission resource in time domain can bereduced. For example, if a radio frame number of first transmission isnot aligned with a radio frame number of second transmission, timings ofthe first transmission and the second transmission partially overlap interms of time, and orthogonal multiplexing of the first transmissionresource and the second transmission resource cannot be implemented onan overlapping part of the resources, causing a resource waste.

Slot duration (namely, a slot length) in this embodiment of thisapplication is most-basic duration occupied by one transmission. Theslot length may be predefined, and for example, is one millisecond, 0.5millisecond, 0.25 millisecond, or 0.125 millisecond. Alternatively, theslot length may be determined based on duration of a reference slot anda subcarrier spacing in an actual transmission process.

When the subcarrier spacing of the first transmission resource isgreater than the subcarrier spacing of the second transmission resource,the slot length of the first transmission resource is less than a slotlength of the second transmission resource. For example, if the firsttransmission resource is used to transmit service data of the V2Xcommunications technology in the 5G system and has a subcarrier spacingof 30 kHz or 60 kHz, and the second transmission resource is used totransmit service data of the V2X communications technology in the LTEsystem and has a subcarrier spacing of 15 kHz, the slot length of thefirst transmission resource is less than the slot length of the secondtransmission resource.

In an embodiment, the first transmission resource and the secondtransmission resource both belong to a same resource pool of the firstcarrier. For example, the first transmission resource and the secondtransmission resource both belong to a first resource pool. In thiscase, optionally, the first transmission resource and the secondtransmission resource are orthogonal to each other. Herein, “orthogonal”means that occupied frequency domain resources are different. Forexample, a subcarrier, a physical resource block, or a sub-channeloccupied by the first resource pool, or a bandwidth part on a carrieroccupied by the first resource pool is different from that occupied by asecond resource pool. In this case, orthogonal transmission withoutmutual interference can be implemented between a V2X service, in the 5Gsystem, on the first transmission resource and a V2X service, in the LTEsystem, on the second transmission resource, thereby achieving faircoexistence of the two types of services.

In another embodiment, the first transmission resource and the secondtransmission resource belong to different resource pools of the firstcarrier. For example, the first transmission resource belongs to asecond resource pool, and the second transmission resource belongs to athird resource pool. In this case, optionally, the second resource pooland the third resource pool are orthogonal to each other.

In an embodiment, the first communications device may occupy the firsttransmission resource and the second transmission resource in an FDMmode (as shown in FIG. 8 ), or may occupy the first transmissionresource and the second transmission resource in a TDM mode (as shown inFIG. 9A or FIG. 9B). This is not limited in this embodiment of thisapplication.

In an embodiment, in a scenario in which the first communications deviceoccupies the first transmission resource and the second transmissionresource in the TDM mode, a method for obtaining the first transmissionresource of the first carrier by the first communications device may be:The first communications device obtains a first resource set of thefirst carrier, where a time-domain resource unit of the first resourceset is determined based on the subcarrier spacing of the firsttransmission resource. In this way, the first communications device canobtain the first transmission resource from the first resource set basedon first configuration information, where the first configurationinformation is used to indicate at least one time-domain resource unitin the first resource set. The first configuration information ispreconfigured or is indicated by second signaling sent by the networkdevice.

In an embodiment, in the scenario in which the first communicationsdevice occupies the first transmission resource and the secondtransmission resource in the TDM mode, a method for obtaining the secondtransmission resource of the first carrier by the first communicationsdevice may be: The first communications device obtains a second resourceset of the first carrier, where a time-domain resource unit of thesecond resource set is determined based on the subcarrier spacing of thesecond transmission resource. In this way, the first communicationsdevice can obtain the second transmission resource from the secondresource set based on second configuration information, where the secondconfiguration information is used to indicate at least one time-domainresource unit in the second resource set. The second configurationinformation is preconfigured or is indicated by third signaling sent bythe network device.

In an embodiment, the time-domain resource unit may be simply understoodas a slot.

As shown in FIG. 9A, if the subcarrier spacing of the first transmissionresource is 30 kHz, and the subcarrier spacing of the secondtransmission resource is 15 kHz, the first communications device obtainsthe first resource set based on signaling sent by the network device ora preconfiguration, and obtains the first transmission resource from thefirst resource set based on the first configuration information. Inaddition, the first communications device obtains the second resourceset based on signaling sent by the network device or a preconfiguration,and obtains the second transmission resource from the second resourceset based on the second configuration information.

In an embodiment, in a scenario in which the first communications deviceoccupies the first transmission resource and the second transmissionresource in the TDM mode, a method for obtaining the first transmissionresource of the first carrier by the first communications device mayalternatively be: The first communications device obtains a thirdresource set and a fourth resource set, where the fourth resource set isa subset of the third resource set, a time-domain resource unit of thethird resource set is determined based on the subcarrier spacing of thesecond transmission resource, and a time-domain resource unit of thefourth resource set is determined based on the subcarrier spacing of thefirst transmission resource. In this way, the first communicationsdevice obtains the first transmission resource from the fourth resourceset based on third configuration information, where the thirdconfiguration information is used to indicate at least one time-domainresource unit in the fourth resource set. Herein, the thirdconfiguration information is preconfigured or is indicated by fourthsignaling sent by the network device. In other words, the firstcommunications device first determines the fourth resource set in thethird resource set, and then determines the first transmission resourcein the fourth resource set. Because the third resource set is determinedbased on the subcarrier spacing of the second transmission resource, thesubcarrier spacing of the second transmission resource may be understoodas a reference subcarrier spacing. In this case, the firstcommunications device may obtain the second transmission resource basedon fourth configuration information, where the fourth configurationinformation is preconfigured or is indicated by fifth signaling sent bythe network device.

As shown in FIG. 9B, if the subcarrier spacing of the secondtransmission resource is a reference subcarrier spacing and is 30 kHz,and the subcarrier spacing of the first transmission resource is 15 kHz,the first communications device obtains the third resource set and thefourth resource set based on signaling sent by the network device or apreconfiguration, and obtains the first transmission resource from thefourth resource set based on the third configuration information.

It should be noted that the first communications device may firstdetermine the second transmission resource and then determine the firsttransmission resource, or may first determine the first transmissionresource and then determine the second transmission resource, or maydetermine the first transmission resource and the second transmissionresource at the same time. This is not limited in this embodiment ofthis application.

S702. The first communications device sends the first message on thefirst transmission resource by using the first wireless accesstechnology, and sends the second message on the second transmissionresource by using the second wireless access technology.

After obtaining the first transmission resource, the firstcommunications device sends the first message on the first transmissionresource by using the first wireless access technology. After obtainingthe second transmission resource, the first communications device sendsthe second message on the second transmission resource by using thesecond wireless access technology.

It can be learned from the foregoing descriptions that the firsttransmission resource and the second transmission resource are differenttransmission resources on the first carrier. Generally, differenttransmission resources correspond to different transmit powers.Therefore, the first communications device may send the first message onthe first transmission resource at a first transmit power and by usingthe first wireless access technology, and send the second message on thesecond transmission resource at a second transmit power and by using thesecond wireless access technology. The transmit power in thisapplication is a power consumed by the first communications device tosend a message on the first transmission resource or the secondtransmission resource.

A sum of the first transmit power and the second transmit power is lessthan or equal to a configured power. Herein, the configured power may bea maximum transmit power or a maximum available transmit power of thefirst communications device, or may be a maximum transmit power or amaximum available transmit power on all carriers in a current subframe,or may be a maximum transmit power or a maximum available transmit poweron a current carrier in a current subframe, or may be a maximum transmitpower configured or indicated on a current channel (a data channel/acontrol channel). In addition, the configured power may alternatively bepredefined, or may be configured by a base station by using signaling.This is not limited in this embodiment of this application.

In an embodiment, the first transmit power is determined by the firstcommunications device based on a priority of the first message, and thesecond transmit power is determined by the first communications devicebased on a priority of the second message. Alternatively, the firsttransmit power or the second transmit power is configured by the networkdevice by using signaling, or is preconfigured.

It is easily understood that, in a scenario in which the firstcommunications device occupies the first transmission resource and thesecond transmission resource in the FDM mode, if the firstcommunications device does not transmit the second message but transmitsthe first message in a slot (or there is the first transmission resourcebut no second transmission resource in a slot), the first transmit powermay be equal to the configured power. If the first communications devicetransmits both the first message and the second message in a slot (orthere is the first transmission resource and the second transmissionresource in a slot), the first communications device may determine thefirst transmit power based on the priority of the first message, anddetermine the second transmit power based on the priority of the secondmessage.

As shown in FIG. 8 , the first communications device transmits the firstmessage but does not transmit the second message at a moment t1. In thiscase, the first transmit power is the configured power, and the secondtransmit power is 0 at this moment. The first communications devicetransmits the first message and the second message at a moment t2. Inthis case, the first transmit power and the second transmit power areboth less than the configured power at this moment, and the sum of thefirst transmit power and the second transmit power is less than theconfigured power.

In an embodiment, the priority of the first message or the priority ofthe second message may be predefined, or may be configured by thenetwork device. For example, for different services, predefinedpriorities are as follows: A priority of an ultra-reliable low-latencycommunication (URLLC) service is higher than a priority of a V2Xservice, the priority of the V2X service is higher than a priority of anenhanced mobile broadband (eMBB) service, and the priority of the eMBBservice is higher than a priority of a massive machine-typecommunications (mMTC) service.

In an example, in a scenario in which a transmit power of the firstcommunications device is limited or a service on a cellular linkoverlaps the V2X service in terms of time, when V2X transmissionoverlaps or conflicts with the following signals on the cellular link,the first communications device sends a channel or a reference signalbased on the following priorities:

Manner 1: A reference signal used for beam measurement on a sidelink(Sidelink Beam Reference Signal, SBRS) has the highest priority, andanother reference signal or a channel has the second highest priority.For example, the priority of the sidelink beam reference signal (SBRS)is higher than a priority of a synchronization signal block (SSB), thepriority of the SSB is higher than a priority of a physical randomaccess channel (PRACH), the priority of the PRACH is higher than apriority of a sounding reference signal (SRS), and the priority of theSRS is higher than a priority of a demodulation reference signal (DMRS).

Manner 2: The first communications device determines priorities of anSBRS, a PRACH, and an SRS according to indication information of thebase station.

Manner 3: The first communications device determines priorities ofreference signals in a predefinition manner. For example, an SBRS hasthe highest priority, and an SSB has the second highest priority.Alternatively, an SSB has the highest priority, and an SBRS has thesecond highest priority. Alternatively, a priority of an SRS/a PRACH ishigher than a priority of an SBRS, and the priority of the SBRS ishigher than a priority of a short physical uplink control channel(sPUCCH). Alternatively, a priority of an sPUCCH is higher than apriority of an SBRS.

It can be learned from the foregoing descriptions that a largersubcarrier spacing of the first transmission resource indicates ashorter symbol length or a shorter slot length of the first transmissionresource. A shorter symbol length or a shorter slot length of the firsttransmission resource indicates less impact on transmission of the firstmessage, and therefore indicates a higher first transmit power allocatedby the first communications device. In addition, a larger subcarrierspacing of the first transmission resource indicates smaller timediversity of the first transmission resource. Therefore, the firstcommunications device needs to cancel out a decrease in a diversity gainwith a higher transmit power. In this way, in this embodiment of thisapplication, there is a positive correlation between the first transmitpower and the subcarrier spacing of the first transmission resource. Inother words, a larger subcarrier spacing of the first transmissionresource indicates a higher first transmit power.

In an embodiment, the first communications device may determine thefirst transmit power and the second transmit power according to thefollowing formula (1) or formula (2):P1=a1×u1×P0P2=b1×u2×P0  (1); andP1=a1×u1/u2×P0P2=b1u2/u1×P0  (2)

P1 represents the first transmit power, P2 represents the secondtransmit power, P0 represents the configured power, u1 represents thesubcarrier spacing of the first transmission resource, u2 represents thesubcarrier spacing of the second transmission resource, and both a1 andb1 are nonnegative constants.

Certainly, the formula (1) or formula (2) may alternatively berepresented in another form, for example, represented as a logarithmicformula.

In addition, a type of a synchronization reference source used by thefirst communications device to send the first message is the same asthat used by the first communications device to send the second message.Alternatively, a synchronization reference source transmission resourceused by the first communications device to send the first message is thesame as a synchronization reference source used by the firstcommunications device to send the second message. In this way, a timingof transmission of the first message remains the same as that oftransmission of the second message, thereby avoiding mutual interferencecaused by different timings in a message transmission process.

In an embodiment, the first communications device may send the firstmessage and the second message to a same device, or may send the firstmessage and the second message to different devices.

In an embodiment, when sending the first message, the firstcommunications device may further send first indication information usedto indicate the first transmit power. When sending the second message,the first communications device may further send second indicationinformation used to indicate the second transmit power.

With reference to FIG. 7 , as shown in FIG. 10 , the communicationmethod provided in this embodiment of this application may furtherinclude at least one of S1100 and S1101. S1100 and S1101 are optional,and therefore are represented by dashed-line boxes in FIG. 10 .

S1100. The first communications device sends the first indicationinformation.

In an embodiment, the first communications device may simultaneouslysend the first indication information and the first message, or mayseparately send the first indication information and the first message.This is not limited in this embodiment of this application.

S1101. The first communications device sends the second indicationinformation.

In an embodiment, the first communications device may simultaneouslysend the second indication information and the second message, or mayseparately send the second indication information and the secondmessage. This is not limited in this embodiment of this application.

In an embodiment, if the first communications device obtains the firsttransmission resource from the first resource set, and obtains thesecond transmission resource from the second resource set, the firstcommunications device may further send third indication information usedto indicate the first transmission resource and fourth indicationinformation used to indicate the second transmission resource.

With reference to FIG. 10 , as shown in FIG. 11 , the communicationmethod provided in this embodiment of this application may furtherinclude at least one of S1200 and S1201. S1200 and S1201 are optional,and therefore are represented by dashed-line boxes in FIG. 11 .

S1200. The first communications device sends the third indicationinformation.

In an embodiment, the first communications device may simultaneouslysend the third indication information and the first message, or mayseparately send the third indication information and the first message.This is not limited in this embodiment of this application. Similarly,in a scenario in which the first communications device sends the firstindication information and the third indication information, the firstcommunications device may simultaneously send the first indicationinformation and the third indication information, or may separately sendthe first indication information and the third indication information.This is not limited in this embodiment of this application.

S1201. The first communications device sends the fourth indicationinformation.

In an embodiment, the first communications device may simultaneouslysend the fourth indication information and the second message, or mayseparately send the fourth indication information and the secondmessage. This is not limited in this embodiment of this application.Similarly, in a scenario in which the first communications device sendsthe second indication information and the fourth indication information,the first communications device may simultaneously send the secondindication information and the fourth indication information, or mayseparately send the second indication information and the fourthindication information. This is not limited in this embodiment of thisapplication.

In an embodiment, if the first communications device obtains the firsttransmission resource from the fourth resource set, when sending thefirst message, the first communications device may further send fifthindication information used to indicate the third resource set and sixthindication information used to indicate the fourth resource set. Whensending the second message, the first communications device may furthersend the fifth indication information.

With reference to FIG. 10 , as shown in FIG. 12 , the communicationmethod provided in this embodiment of this application may furtherinclude at least one of S1300 and S1301. S1300 and S1301 are optional,and therefore are represented by dashed-line boxes in FIG. 12 .

S1300. The first communications device sends the fifth indicationinformation and the sixth indication information.

In an embodiment, the first communications device may simultaneouslysend the fifth indication information, the sixth indication information,and the first message. Alternatively, the fifth indication informationand the sixth indication information may be simultaneously sent, and thefirst message may be separately sent. This is not limited in thisembodiment of this application. Similarly, in a scenario in which thefirst communications device sends the first indication information, thefifth indication information, and the sixth indication information, thefirst communications device may simultaneously send the first indicationinformation, the fifth indication information, and the sixth indicationinformation. Alternatively, the fifth indication information and thesixth indication information may be simultaneously sent, and the firstindication information may be separately sent. This is not limited inthis embodiment of this application.

S1301. The first communications device sends the fifth indicationinformation.

In an embodiment, the first communications device may simultaneouslysend the fifth indication information and the second message, or mayseparately send the fifth indication information and the second message.This is not limited in this embodiment of this application. Similarly,in a scenario in which the first communications device sends the secondindication information and the fifth indication information, the firstcommunications device may simultaneously send the second indicationinformation and the fifth indication information, or may separately sendthe second indication information and the fifth indication information.This is not limited in this embodiment of this application.

It should be noted that if the first communications device sends thefirst message and the second message to a same device, the firstcommunications device only needs to perform S1300.

It can be learned from the foregoing descriptions that because the firstwireless access technology and a second access network technology aredifferent, and the first transmission resource and the secondtransmission resource are different, the first communications device cansend the first message on the first transmission resource by using thefirst wireless access technology, and can further send the secondmessage on the second transmission resource by using the second wirelessaccess technology, to achieve coexistence of two different types ofservices. Herein, “independent of each other” means that the subcarrierspacing of the first transmission resource and the subcarrier spacing ofthe second transmission resource are separately configured and are notassociated in values.

In an embodiment, if the first wireless access technology is the V2Xcommunications technology in the 5G system, and the second wirelessaccess technology is the V2X communications technology in the LTEsystem, effective coexistence of the V2X communications technology inthe 5G system and the V2X communications technology in the LTE systemcan be achieved by using the communication method provided in thisapplication.

FIG. 13 is another schematic flowchart of a communication methodaccording to an embodiment of this application. The communication methodmay be applied to the communications system shown in FIG. 1 or FIG. 4 .

A procedure shown in FIG. 13 is described by using an example in whichthe procedure is performed by a second communications device. The secondcommunications device is a receive-end device, and may be the remotedevice, the relay device, the RSU, or the base station above, orcertainly may be a chip in any one of the foregoing devices. This is notlimited in this embodiment of this application.

As shown in FIG. 13 , the communication method provided in thisembodiment of this application includes the following operations.

S140. The second communications device obtains a first carrier.

For the first carrier, refer to the descriptions in the embodiment shownin FIG. 7 . Details are not described herein again. A method forobtaining the first carrier by the second communications device issimilar to the method for obtaining the first carrier by the firstcommunications device. For details, refer to the descriptions of S700.Details are not described herein again. A difference lies in that thesecond communications device is a receive-end device, and the firstcommunications device is a transmit-end device.

S141. The second communications device obtains a first transmissionresource and a second transmission resource of the first carrier.

A method for obtaining the first transmission resource of the firstcarrier by the second communications device is similar to the method forobtaining the first transmission resource of the first carrier by thefirst communications device. For details, refer to the descriptions ofS701. Details are not described herein again.

A method for obtaining the second transmission resource of the firstcarrier by the second communications device is similar to the method forobtaining the second transmission resource of the first carrier by thefirst communications device. For details, refer to the descriptions ofS701. Details are not described herein again.

A difference lies in that the second communications device may furtherobtain third indication information and fourth indication information,obtain the first resource set according to the third indicationinformation, and obtain the second resource set according to the fourthindication information. In an embodiment, the third indicationinformation and the fourth indication information that are obtained bythe second communications device may be sent from a transmit end, or maybe predefined, or may be indicated by a network device by usingsignaling. This is not limited in this embodiment of this application.Alternatively, the second communications device obtains fifth indicationinformation and sixth indication information, determines the fourthresource set according to the fifth indication information and the sixthindication information, and determines the third resource set accordingto the fifth indication information. In an embodiment, the fifthindication information and the sixth indication information that areobtained by the second communications device may be sent from a transmitend, or may be predefined, or may be indicated by a network device byusing signaling. This is not limited in this embodiment of thisapplication.

S142. The second communications device receives a first message on thefirst transmission resource by using a first wireless access technology,and receives a second message on the second transmission resource byusing a second wireless access technology.

In an embodiment, a type of a synchronization reference source used bythe second communications device to receive the first message is thesame as that used by the second communications device to receive thesecond message. Alternatively, a synchronization reference sourcetransmission resource used by the second communications device toreceive the first message is the same as a synchronization referencesource used by the second communications device to receive the secondmessage.

In an embodiment, the second communications device may receive the firstmessage and the second message that are sent by a same device, or mayreceive the first message and the second message that are sent fromdifferent devices.

In an embodiment, the second communications device may further obtainfirst indication information and/or second indication information. Inthis way, the second communications device can determine first transmitpowers and second transmit powers at different transmission momentsaccording to the received indication information, so that the secondcommunications device can obtain accurate channel information duringreceiving measurement, to select a sending resource more accurately.

With reference to FIG. 13 , as shown in FIG. 14 , the communicationmethod provided in this embodiment of this application may furtherinclude at least one of S160 and S161. S160 and S161 are optional, andtherefore are represented by dashed-line boxes in FIG. 14 .

S160. The second communications device obtains the first indicationinformation.

S161. The second communications device obtains the second indicationinformation.

It can be learned from the foregoing descriptions that the secondcommunications device may further obtain the third indicationinformation, determine the first resource set according to the thirdindication information, and further obtain the first transmissionresource from the first resource set. In addition, the secondcommunications device may further obtain the fourth indicationinformation, determine the second resource set according to the fourthindication information, and further obtain the second transmissionresource from the second resource set.

With reference to FIG. 14 , as shown in FIG. 15 , the communicationmethod provided in this embodiment of this application may furtherinclude at least one of S170 and S171. S170 and S171 are optional, andtherefore are represented by dashed-line boxes in FIG. 15 .

S170. The second communications device obtains the third indicationinformation.

S171. The second communications device obtains the fourth indicationinformation.

It can be learned from the foregoing descriptions that the secondcommunications device may further obtain the fifth indicationinformation and the sixth indication information, determine the fourthresource set according to the fifth indication information and the sixthindication information, and further obtain the first transmissionresource from the fourth resource set.

With reference to FIG. 14 , as shown in FIG. 16 , the communicationmethod provided in this embodiment of this application may furtherinclude S180.

S180. The second communications device obtains the fifth indicationinformation and the sixth indication information.

It can be learned from the foregoing descriptions that because the firstwireless access technology and a second access network technology aredifferent, and the first transmission resource and the secondtransmission resource are different, the second communications devicecan receive the first message on the first transmission resource byusing the first wireless access technology, and can further receive thesecond message on the second transmission resource by using the secondwireless access technology, to achieve coexistence of two differenttypes of services.

In an embodiment, if the first wireless access technology is a V2Xcommunications technology in a 5G system, and the second wireless accesstechnology is a V2X communications technology in an LTE system,effective coexistence of the V2X communications technology in the LTEsystem and the V2X communications technology in the 5G system can beachieved by using the communication method provided in this application.

In addition to the foregoing descriptions, in the communication methodprovided in this application, the first communications device mayfurther achieve coexistence of different services on different carriers.Specifically, the first communications device obtains a first carrierused to transmit a first message and obtains a second carrier used totransmit a second message, and then determines a first transmit powerfor sending the first message on the first carrier and determines asecond transmit power for sending the second message on the secondcarrier. In this way, the first communications device can send the firstmessage on the first carrier at the first transmit power and by using afirst wireless access technology, and send the second message on thesecond carrier at the second transmit power and by using a secondwireless access technology. Descriptions herein are similar to theforegoing descriptions, and a sum of the first transmit power and thesecond transmit power is less than or equal to a configured power. It iseasily understood that, an operation performed by the firstcommunications device in this scenario is similar to the operationperformed by the first communications device in the foregoing scenarioin which the first communications device occupies the first transmissionresource and the second transmission resource in the FDM mode. Detailsare not described herein again.

In conclusion, coexistence of different types of services is achieved byusing the communication method provided in this application.

An embodiment of this application provides a communications device. Thecommunications device may be a first communications device, or may besome apparatuses in the first communications device, for example, a chipsystem in the first communications device. In an embodiment, the chipsystem is configured to support the first communications device inimplementing a function in the foregoing method embodiment, for example,sending or processing data and/or information in the foregoing method.The chip system includes a chip, and may further include anotherdiscrete component or circuit structure.

The first communications device is a remote device, a relay device, anRSU, a base station, or a distributed unit (Distributed Unit, DU) in abase station system. The communications device is configured to performthe operations performed by the first communications device in theforegoing communication method. The communications device provided inthis embodiment of this application may include modules corresponding tocorresponding operations.

In an embodiment of this application, the communications device may bedivided into function modules based on the foregoing method examples.For example, each function module may be obtained through division basedon a corresponding function, or two or more functions may be integratedinto one processing module. The integrated module may be implemented ina form of hardware, or may be implemented in a form of a softwarefunction module. In this embodiment of this application, module divisionis an example, and is merely logical function division. In an actualimplementation, another division manner may be used.

When each function module is obtained through division based on acorresponding function, FIG. 17 is a possible schematic structuraldiagram of a communications device 190. As shown in FIG. 17 , thecommunications device 190 includes an obtaining unit 191 and a sendingunit 192.

The obtaining unit 191 is configured to support the communicationsdevice 190 in performing S700 and S701 in the foregoing embodimentand/or another process used for the technology described in thisspecification.

The sending unit 192 is configured to support the communications device190 in performing S702, S1100, S1101, S1200, S1201, S1300, and S1301 inthe foregoing embodiment and/or another process used for the technologydescribed in this specification.

As shown in FIG. 18 , the communications device 190 further includes adetermining unit 193. The determining unit 193 is configured to indicatethe communications device 190 to: determine a first transmit power, anddetermine a second transmit power.

Certainly, the communications device 190 provided in this embodiment ofthis application includes but is not limited to the foregoing modules.For example, the communications device 190 may further include a storageunit.

The storage unit may be configured to store program code of thecommunications device 190. All related content of the operations in theforegoing method embodiment may be cited in function descriptions ofcorresponding function modules. Details are not described herein again.

When the communications device 190 is a terminal, the obtaining unit 191may be the processor 301 in FIG. 5 , the sending unit 192 may be theantenna in FIG. 5 , and the storage unit may be the memory 303 in FIG. 5.

When the communications device 190 is a base station, the obtaining unit191 may be the processor 61 in FIG. 6 , the sending unit 192 may be thetransceiver 64 in FIG. 6 , and the storage unit may be the memory 62 inFIG. 6 .

When the communications device 190 runs, the communications device 190performs the operations performed by the first communications device inthe communication method in the embodiment shown in FIG. 7 , FIG. 10 ,FIG. 11 , or FIG. 12 .

Another embodiment of this application further provides acomputer-readable storage medium. The computer-readable storage mediumstores an instruction; when the instruction is run on the communicationsdevice 190, the communications device 190 performs the operationsperformed by the first communications device in the communication methodin the embodiment shown in FIG. 7 , FIG. 10 , FIG. 11 , or FIG. 12 .

In another embodiment of this application, a computer program product isfurther provided. The computer program product includes acomputer-executable instruction; the computer-executable instruction isstored in a computer-readable storage medium. At least one processor ofthe communications device 190 may read the computer-executableinstruction from the computer-readable storage medium, and the at leastone processor executes the computer-executable instruction, so that thecommunications device 190 performs the operations performed by the firstcommunications device in the communication method shown in FIG. 7 , FIG.10 , FIG. 11 , or FIG. 12 .

An embodiment of this application provides a communications device. Thecommunications device 200 is a second communications device, or may be achip in the second communications device. The second communicationsdevice is a remote device, a relay device, an RSU, a base station, or aDU in a base station system. The communications device is configured toperform the operations performed by the second communications device inthe foregoing communication method. The communications device providedin this embodiment of this application may include modules correspondingto corresponding operations.

In an embodiment of this application, the communications device may bedivided into function modules based on the foregoing method examples.For example, each function module may be obtained through division basedon a corresponding function, or two or more functions may be integratedinto one processing module. The integrated module may be implemented ina form of hardware, or may be implemented in a form of a softwarefunction module. In an embodiment of this application, module divisionis an example, and is merely logical function division. In an actualimplementation, another division manner may be used.

When each function module is obtained through division based on acorresponding function, FIG. 19 is a possible schematic structuraldiagram of a communications device 200. As shown in FIG. 19 , thecommunications device 200 includes an obtaining unit 201 and a receivingunit 202.

The obtaining unit 201 is configured to support the communicationsdevice 200 in performing S140, S141, S160, S161, S170, S171, and S180 inthe foregoing embodiment and/or another process used for the technologydescribed in this specification.

The receiving unit 202 is configured to support the communicationsdevice 200 in performing S142 in the foregoing embodiment and/or anotherprocess used for the technology described in this specification.

Certainly, the communications device 200 provided in this embodiment ofthis application includes but is not limited to the foregoing modules.For example, the communications device 200 may further include a storageunit.

The storage unit may be configured to store program code of thecommunications device 200. All related content of the operations in theforegoing method embodiment may be cited in function descriptions ofcorresponding function modules. Details are not described herein again.

When the communications device 200 is a terminal, the obtaining unit 201may be the processor 301 in FIG. 5 , the receiving unit 202 may be theantenna in FIG. 5 , and the storage unit may be the memory 303 in FIG. 5.

When the communications device 200 is a base station, the obtaining unit201 may be the processor 61 in FIG. 6 , the receiving unit 202 may bethe transceiver 64 in FIG. 6 , and the storage unit may be the memory 62in FIG. 6 .

When the communications device 200 runs, the communications device 200performs the operations performed by the second communications device inthe communication method in the embodiment shown in any one of theaccompanying drawings FIG. 13 to FIG. 16 .

Another embodiment of this application further provides acomputer-readable storage medium. The computer-readable storage mediumstores an instruction; when the instruction is run on the communicationsdevice 200, the communications device 200 performs the operationsperformed by the second communications device in the communicationmethod in the embodiment shown in any one of the accompanying drawingsFIG. 13 to FIG. 16 .

In another embodiment of this application, a computer program product isfurther provided. The computer program product includes acomputer-executable instruction, and the computer-executable instructionis stored in a computer-readable storage medium. At least one processorof the communications device 200 may read the computer-executableinstruction from the computer-readable storage medium, and the at leastone processor executes the computer-executable instruction, so that thecommunications device 200 performs the operations performed by thesecond communications device in the communication method shown in anyone of the accompanying drawings FIG. 13 to FIG. 16 .

All or some of the foregoing embodiments may be implemented throughsoftware, hardware, firmware, or any combination thereof. When asoftware program is used to implement the embodiments, the embodimentsmay be implemented completely or partially in a form of a computerprogram product. The computer program product includes one or morecomputer instructions. When the computer program instructions are loadedand executed on a computer, the procedures or functions according to theembodiments of this application are all or partially generated. Thecomputer may be a general-purpose computer, a special-purpose computer,a computer network, or other programmable apparatuses. The computerinstructions may be stored in a computer-readable storage medium or maybe transmitted from a computer-readable storage medium to anothercomputer-readable storage medium. For example, the computer instructionsmay be transmitted from a website, computer, server, or data center toanother website, computer, server, or data center in a wired (forexample, a coaxial cable, an optical fiber, or a digital subscriber line(DSL)) or wireless (for example, infrared, radio, or microwave) manner.The computer-readable storage medium may be any usable medium accessibleto a computer, or a data terminal device, such as a server or a datacenter, integrating one or more usable media. The usable medium may be amagnetic medium (for example, a floppy disk, a hard disk, or a magnetictape), an optical medium (for example, a DVD), a semiconductor medium(for example, a solid-state drive (SSD)), or the like.

The descriptions of the foregoing implementations allow a person skilledin the art to clearly understand that, for the purpose of convenient andbrief description, division into the foregoing function modules is takenas an example for illustration. In an actual application, the foregoingfunctions may be allocated to different modules for implementation basedon a requirement, that is, an inner structure of an apparatus is dividedinto different function modules to implement all or some of thefunctions described above.

In the specification, claims, and accompanying drawings of thisapplication, the terms “first”, “second”, “third” and the like areintended to distinguish between different objects but not to limit aparticular order.

In the embodiments of this application, the word such as “example” or“for example” is used to represent giving an example, an illustration,or a description. Any embodiment or design scheme described as “example”or “for example” in the embodiments of this application should not beexplained as being more preferred or having more advantages than anotherembodiment or design scheme. Exactly, use of the word such as “example”or “for example” is intended to present a relative concept in a specificmanner.

In the several embodiments provided in this application, it should beunderstood that the disclosed apparatus and method may be implemented inother manners. For example, the described apparatus embodiments aremerely examples. For example, the module or unit division is merelylogical function division and may be another division manner in anactual implementation. For example, a plurality of units or componentsmay be combined or integrated into another apparatus, or some featuresmay be ignored or not performed. In addition, the displayed or discussedmutual couplings or direct couplings or communication connections may beimplemented via some interfaces. The indirect couplings or communicationconnections between the apparatuses or units may be implemented inelectronic, mechanical, or other forms.

The units described as separate parts may or may not be physicallyseparate, and parts displayed as units may be one or more physicalunits, may be located in one place, or may be distributed on differentplaces. Some or all of the units may be selected based on actualrequirements to achieve the objectives of the solutions of theembodiments.

In addition, functional units in the embodiments of this application maybe integrated into one processing unit, or each of the units may existalone physically, or two or more units may be integrated into one unit.The integrated unit may be implemented in a form of hardware, or may beimplemented in a form of a software functional unit.

When the integrated unit is implemented in the form of a softwarefunctional unit and sold or used as an independent product, theintegrated unit may be stored in a readable storage medium. Based onsuch an understanding, the technical solutions of the embodiments ofthis application essentially, or the part contributing to the prior art,or all or some of the technical solutions may be implemented in a formof a software product. The software product is stored in a storagemedium and includes several instructions for instructing a device (whichmay be a single-chip microcomputer, a chip, or the like) or a processorto perform all or some of the operations of the methods described in theembodiments of this application. The foregoing storage medium includes:any medium that can store program code, such as a USB flash drive, aremovable hard disk, a read-only memory (ROM), a random access memory(RAM), a magnetic disk, or an optical disc.

The foregoing descriptions are merely specific implementations of thisapplication, but are not intended to limit the protection scope of thisapplication. Any variation or replacement within the technical scopedisclosed in this application shall fall within the protection scope ofthis application. Therefore, the protection scope of this applicationshall be subject to the protection scope of the claims.

What is claimed is:
 1. A communication method, comprising: obtaining, bya first communications device, a first carrier to transmit a firstmessage and a second message; obtaining, by the first communicationsdevice, a first transmission resource and a second transmission resourceof the first carrier to send the first message and the second messagerespectively, and the first transmission resource and the secondtransmission resource are different transmission resources; sending, bythe first communications device, the first message on the firsttransmission resource using a first wireless access technology; sending,by the first communications device, the second message on the secondtransmission resource using a second wireless access technology, whereinthe first wireless access technology and the second wireless accesstechnology are different inter-device direct communicationstechnologies; and determining, by the first communications device, afirst transmit power and a second transmit power, wherein a sum of thefirst transmit power and the second transmit power is less than or equalto a configured power indicated by first signaling received from anetwork device, wherein the first message is sent at the first transmitpower and the second message is sent at the second transmit power. 2.The communication method according to claim 1, further comprising:sending, by the first communications device, first indicationinformation used to indicate the first transmit power; and sending, bythe first communications device, second indication information used toindicate the second transmit power.
 3. The communication methodaccording to claim 1, further comprising: occupying, by the firstcommunications device, the first transmission resource and the secondtransmission resource in a time division multiplexing (TDM) mode.
 4. Thecommunication method according to claim 3, wherein obtaining a firsttransmission resource and a second transmission resource of the firstcarrier comprises: obtaining, by the first communications device, afirst resource set and a second resource set of the first carrier,wherein a time-domain resource unit of the first resource set isdetermined based on a subcarrier spacing of the first transmissionresource, and a time-domain resource unit of the second resource set isdetermined based on a subcarrier spacing of the second transmissionresource; obtaining, by the first communications device, the firsttransmission resource from the first resource set based on firstconfiguration information indicating at least one time-domain resourceunit in the first resource set; and obtaining the second transmissionresource from the second resource set based on second configurationinformation indicating at least one time-domain resource unit in thesecond resource set, wherein the first configuration information ispreconfigured or indicated by second signaling sent by the networkdevice, and the second configuration information is preconfigured orindicated by third signaling sent by the network device.
 5. Thecommunication method according to claim 3, wherein obtaining a firsttransmission resource of the first carrier comprises: obtaining, by thefirst communications device, a third resource set and a fourth resourceset of the first carrier, wherein the fourth resource set is a subset ofthe third resource set, a time-domain resource unit of the thirdresource set is determined based on a subcarrier spacing of the secondtransmission resource, and a time-domain resource unit of the fourthresource set is determined based on a subcarrier spacing of the firsttransmission resource; and obtaining, by the first communicationsdevice, the first transmission resource from the fourth resource setbased on third configuration information, indicating at least onetime-domain resource unit in the fourth resource set, wherein the thirdconfiguration information is preconfigured or is indicated by fourthsignaling sent by the network device.
 6. The communication methodaccording to claim 1, wherein the first transmission resource and thesecond transmission resource both belong to a first resource pool andare orthogonal to each other; or the first transmission resource belongsto a second resource pool, the second transmission resource belongs to athird resource pool, and the second resource pool and the third resourcepool are orthogonal to each other.
 7. The communication method accordingto claim 1, wherein obtaining a first carrier comprises: determining, bythe first communications device, the first carrier; or receiving, by thefirst communications device, carrier indication information from thenetwork device, indicating the first carrier; and obtaining the firstcarrier according to the carrier indication information.
 8. Acommunication method, comprising: obtaining, by a second communicationsdevice, a first carrier to transmit a first message and a secondmessage; obtaining, by the second communications device, a firsttransmission resource and a second transmission resource of the firstcarrier to receive the first message and the second messagerespectively, wherein the first transmission resource is different fromthe second transmission resource; receiving, by the secondcommunications device, the first message on the first transmissionresource using a first wireless access technology; receiving, by thesecond communications device, the second message on the secondtransmission resource using a second wireless access technology, whereinthe first wireless access technology and the second wireless accesstechnology are different inter-device direct communicationstechnologies; obtaining, by the second communications device, firstindication information indicating a transmit power of the first message;and obtaining, by the second communications device, second indicationinformation indicating a transmit power of the second message, wherein asum of the transmit power of the first message and the transmit power ofthe second message is less than or equal to a configured power, which isindicated by signaling sent by a network device.
 9. The communicationmethod according to claim 8, wherein obtaining a first transmissionresource and a second transmission resource of the first carriercomprises: obtaining, by the second communications device, a firstresource set and a second resource set of the first carrier, wherein atime-domain resource unit of the first resource set is determined basedon a subcarrier spacing of the first transmission resource, and atime-domain resource unit of the second resource set is determined basedon a subcarrier spacing of the second transmission resource; obtaining,by the second communications device, the first transmission resourcefrom the first resource set based on first configuration informationindicating at least one time-domain resource unit in the first resourceset, wherein the first configuration information is preconfigured,indicated by second signaling sent by the network device, or sent by afirst communications device; and obtaining the second transmissionresource from the second resource set based on second configurationinformation indicating at least one time-domain resource unit in thesecond resource set, wherein the second configuration information ispreconfigured, indicated by third signaling sent by the network device,or sent by a third communications device.
 10. The communication methodaccording to claim 8, wherein obtaining a first transmission resource ofthe first carrier comprises: obtaining, by the second communicationsdevice, a third resource set and a fourth resource set of the firstcarrier, wherein the fourth resource set is a subset of the thirdresource set, a time-domain resource unit of the third resource set isdetermined based on a subcarrier spacing of the second transmissionresource, and a time-domain resource unit of the fourth resource set isdetermined based on a subcarrier spacing of the first transmissionresource; and obtaining, by the second communications device, the firsttransmission resource from the fourth resource set based on thirdconfiguration information indicating at least one time-domain resourceunit in the fourth resource set, wherein the third configurationinformation is preconfigured, indicated by fourth signaling sent by thenetwork device, or sent by a first communications device.
 11. Thecommunication method according to claim 8, wherein the firsttransmission resource and the second transmission resource both belongto a first resource pool and are orthogonal to each other; or the firsttransmission resource belongs to a second resource pool, the secondtransmission resource belongs to a third resource pool, and the secondresource pool and the third resource pool are orthogonal to each other.12. The communication method according to claim 8, wherein obtaining afirst carrier comprises: determining, by the second communicationsdevice, the first carrier; or receiving, by the second communicationsdevice, carrier indication information from the network device,indicating the first carrier; and obtaining the first carrier accordingto the carrier indication information.
 13. A communications deviceoperating as a first communications device, comprising: an obtainingunit configured to: obtain a first carrier to transmit a first messageand a second message, and obtain a first transmission resource and asecond transmission resource of the first carrier to send the firstmessage and the second message respectively, wherein the firsttransmission resource and the second transmission resource are differenttransmission resources; and a sending unit configured to: send, using afirst wireless access technology, the first message on the firsttransmission resource, and send, using a second wireless accesstechnology, the second message on the second transmission resource,wherein the first wireless access technology and the second wirelessaccess technology are different inter-device direct communicationstechnologies; and a determining unit configured to: determine a firsttransmit power and a second transmit power, wherein a sum of the firsttransmit power and the second transmit power is less than or equal to aconfigured power, which is indicated by first signaling sent by anetwork device, wherein the sending unit is configured to: send thefirst message on the first transmission resource at the first transmitpower using the first wireless access technology, and send the secondmessage on the second transmission resource at the second transmit powerusing the second wireless access technology.
 14. The communicationsdevice according to claim 13, wherein the sending unit is furtherconfigured to send first indication information and second indicationinformation to indicate the first transmit power and the second transmitpower respectively.
 15. The communications device according to claim 13,wherein the sending unit is configured to occupy the first transmissionresource and the second transmission resource in a time divisionmultiplexing (TDM) mode.
 16. The communications device according toclaim 15, wherein the obtaining unit is further configured to: obtain afirst resource set and a second resource set of the first carrier,wherein a time-domain resource unit of the first resource set isdetermined based on a subcarrier spacing of the first transmissionresource, and a time-domain resource unit of the second resource set isdetermined based on a subcarrier spacing of the second transmissionresource; obtain the first transmission resource from the first resourceset based on first configuration information indicating at least onetime-domain resource unit in the first resource set, wherein the firstconfiguration information is preconfigured or is indicated by secondsignaling sent by the network device; and obtain the second transmissionresource from the second resource set based on second configurationinformation indicating at least one time-domain resource unit in thesecond resource set, wherein the second configuration information ispreconfigured or is indicated by third signaling sent by the networkdevice.
 17. The communications device according to claim 15, wherein theobtaining unit is further configured to: obtain a third resource set anda fourth resource set of the first carrier, wherein the fourth resourceset is a subset of the third resource set, a time-domain resource unitof the third resource set is determined based on a subcarrier spacing ofthe second transmission resource, and a time-domain resource unit of thefourth resource set is determined based on a subcarrier spacing of thefirst transmission resource; and obtain the first transmission resourcefrom the fourth resource set based on third configuration information,wherein the third configuration information is used to indicate at leastone time-domain resource unit in the fourth resource set, and the thirdconfiguration information is preconfigured or is indicated by fourthsignaling sent by the network device.